package com.acme.task4;

public class Task4Arrays {
	public static void main(String[] args) {

		int arrayInt[] = new int[10];
        arrayInt[0] = 3;
        arrayInt[1] = 7;
        arrayInt[2] = 3;
        arrayInt[3] = 9;
        arrayInt[4] = 7;
        arrayInt[5] = 3;
        arrayInt[6] = 3;
        arrayInt[7] = 9;
        arrayInt[8] = 3;
        arrayInt[9] = 9;

        int c3 = 0;
        int c7 = 0;
        int c9 = 0;

        for (int elemInt : arrayInt) {
            switch (elemInt) {
                case 3:
                    c3++;
                    break;
                case 7:
                    c7++;
                    break;
                case 9:
                    c9++;
            }

        }

		//print the following
		System.out.println("Number of 3: " + c3);
		System.out.println("Number of 7: " + c7);
		System.out.println("Number of 9: " + c9);
	}
}
